package com.spring.ai;

import com.spring.ai.assistant.AssistantProvider;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@SpringBootTest
public class TemplateTest {
    @Autowired
    private AssistantProvider assistantProvider;

    /**
     * 测试1
     */
    @Test
    public void test1() {
        String now = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
        String result = assistantProvider.chat(3, "现在是什么时间",now);
        System.out.println(result);
    }
}
